﻿using System.Collections.Generic;
using HuaXingSDK.Response;

namespace HuaXingSDK.Request
{
    public class Req还款收益提交 : HXSyncRequest<Res还款收益提交>
    {
        public string OldReqseqNo { get; set; }
        public HXDFFlag DFFlag { get; set; }
        public string LoanNo { get; set; }
        public string BWACName { get; set; }
        public string BWACNo { get; set; }
        public int TotalNum { get { return RepayList.Count; } }
        public string EXT_FILED1 { get; set; }
        public string EXT_FILED2 { get; set; }
        public List<RepayItem> RepayList { get; }

        public Req还款收益提交() : base(HXTransCode.Req_还款收益明细提交)
        {
            RepayList = new List<RepayItem>();
        }

        public class RepayItem : EntityToXml
        {
            public string SubseqNo { get; set; }
            public string ACNo { get; set; }
            public string ACName { get; set; }
            public string IncomeDate { get; set; }
            public decimal Amount { get; set; }
            public decimal? PrincipalAMT { get; set; }
            public decimal? IncomeAMT { get; set; }
            public decimal? FeeAMT { get; set; }
            public string EXT_FILED3 { get; set; }
        }
    }
}
